using System.ComponentModel.DataAnnotations;

namespace RabbitTraceability.Api.Dtos.Request
{
    /// <summary>
    /// 修改溯源信息请求DTO
    /// </summary>
    public class UpdateTraceabilityInfoRequestDto
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required(ErrorMessage = "商品名称不能为空")]
        public string ProductName { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        [Required(ErrorMessage = "生产批次不能为空")]
        public string ProductionBatch { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        [Required(ErrorMessage = "保质期不能为空")]
        public string ShelfLife { get; set; }

        /// <summary>
        /// 生产许可证号
        /// </summary>
        [Required(ErrorMessage = "生产许可证号不能为空")]
        public string ProductionLicense { get; set; }

        /// <summary>
        /// 生产企业
        /// </summary>
        [Required(ErrorMessage = "生产企业不能为空")]
        public string Manufacturer { get; set; }

        /// <summary>
        /// 封面图
        /// </summary>
        [Required(ErrorMessage = "封面图不能为空")]
        public string CoverImage { get; set; }
    }
} 